#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>



char* My_strncat(char* dest, const char* sour, int n)
{
	assert(dest && sour);
	char* ret = dest;
	int count = 0;

	while (*dest != '\0')
	{
		dest++;
	}
	while (count < n)
	{
		*dest = *sour;
		dest++;
		sour++;
		count++;
	}
	return ret;
}









int main()
{
	char Arr1[101] = "abcdefg";
	char Arr2[101] = "abc";
	My_strncat(Arr1, Arr2, 1);
	printf("%s", Arr1);






	return 0;
}